package com.example.dtos.plugin;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.Pattern;

/**
 * 插件状态更新DTO
 */
public record PluginStatusDTO(
    @Schema(description = "目标状态：enabled/disabled", example = "disabled")
    @NotBlank(message = "状态不能为空")
    @Pattern(regexp = "^(enabled|disabled)$", message = "状态只能是enabled或disabled")
    String status
) {} 